<?php
namespace gnomephp\form;

class Submit extends FormField{
	
	
	public function __construct($formId, $url, $name='submit', $value=null, $props=array()){
		$props['type'] = 'submit';
		
		parent::__construct($formId, $url, $name, $value, $props);
	}
	
	
	public function __toString(){
		return '<input '.
			($this->name ? 'name="'.$this->name.'"' : '').
			$this->buildProps($this->props).
			($this->value ? 'value="'.$this->value.'"' : '').
			' />';
	}
	
}